package com.htl.service;

import com.htl.entity.ProductInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.htl.vo.ProductExcelVO;

import java.io.InputStream;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 韩天乐
 * @since 2021-11-13
 */
public interface ProductInfoService extends IService<ProductInfo> {
    public BigDecimal findPriceById(Integer id);
    public Boolean subStockById(Integer id, Integer quantity);
    public List<ProductExcelVO> productExcelVOList();
    public List<ProductInfo> excelToProductInfoList(InputStream inputStream);
}

